package usr.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import usr.dao.AccountRelationMapper;
import usr.model.po.AccountRelation;

import java.util.Date;

/**
 * Created by germmy on 17/8/11.
 */
@Component("accountRelationService")
public class AccountRelationService {

    @Autowired
    private AccountRelationMapper armDao;

    public void insertAr() {
        if(1==1){
            AccountRelation ar = new AccountRelation();
            ar.setIdNum("320923198411026630");
            ar.setNonoUserId(123L);
            ar.setMerchantUserId(456L);
            ar.setMerchantType((byte)18);
            ar.setConfirm((byte)2);
            ar.setCreateTime(new Date());
            ar.setUpdateTime(new Date());
            ar.setVersion(1);
            armDao.insert(ar);
        }else{
            System.out.println("妈的，听德军的，啥也不要干了");
        }

    }


}
